#import <Foundation/Foundation.h>
#import <sqlite3.h>

#import "FWApplication.h"


@protocol FWDBAccessDelegate <NSObject>

- (NSObject*)objectForSQLRecord:(sqlite3_stmt*)sqlStatement withId:(NSInteger)sqlid application:(FWApplication*)application;

@end

NSArray* FWDBGetRecords(NSString* sql, NSInteger sqlid, NSString* dbpath, FWApplication* application, id<FWDBAccessDelegate> delegate);
